﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Possan.ZipFolders
{
    public class ConfigurationSectionHandler : IConfigurationSectionHandler
    {
        public object Create(object parent, object configContext, System.Xml.XmlNode section)
        {
            log4net.ILog l = log4net.LogManager.GetLogger("Possan.ZipFolders");
            l.Debug("Loading configurationsection: " + section.OuterXml);
            FolderConfig cfg = new FolderConfig();
            cfg.Parse(section);
            return cfg;
        }
    }
}
